<?php
namespace app\common\validate;
use think\Validate;
class User extends Validate{
    
    protected  $rule=[
       "username"=>"require|max:10",
       "password"=>"require",
        "email"=>"require",
        
    ];
    
    protected $scene=[
        "add"=>["username","password","email"],
        "login"=>["username","password"],
    ];
    
}

